package com.lyk.coursearrange.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyk.coursearrange.entity.Schedule;
import com.lyk.coursearrange.entity.ScheduleOrStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ScheduleOrStudentDao extends BaseMapper<ScheduleOrStudent> {
    boolean insertto(@Param("schedule_id") Long schedule_id, @Param("student_id") Long student_id);


    boolean signin(@Param("schedule_id") Long schedule_id,@Param("student_id") Long student_id);

    Long selectsignin(@Param("schedule_id") Long schedule_id);

    boolean addTeaAsStu(@Param("teacherId") Long teacherId,@Param("studentId") Long studentId);

    boolean addStuAsSch(@Param("studentId") Long studentId,@Param("scheduleId") Long scheduleId);
}
